<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="model.ThanhVienModel"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Thêm thành viên</title>
<link rel="stylesheet" type="text/css" href="css/addUser.css" />
</head>
<body>
<div id="addUser">
	<div id="addUser">
	<div id="wrapp_form">
		<h3>THÊM  MỚI THÀNH VIÊN</h3>
		<form action="thanhvienController" method="post">
		
			<%
				ThanhVienModel model = null;
				try{
					String error =  request.getAttribute("Lỗi").toString();
					out.println(error);
					
					model = (ThanhVienModel) request.getAttribute("ValueObject");
					
					
				}catch(Exception e){
				}
			 %>
		
			<div>
				<label for="id">Id: </label>
				<input type="text" name="id" id="id"  readonly="readonly"/>
			</div>
			<div style="clear: both;"></div>
			
			<div>
				<label for="tenDN">Tên đăng nhập: </label>
				<input type="text" name="tenDN" id="tenDN" value="<%
						if (model != null){
							out.println(model.getTendn());
						}
					 %>				
				" />
			</div>
			<div style="clear: both;"></div>
			
			<div>
				<label for="matKhau">Mật khẩu: </label>
				<input type="password" name="matKhau" id="matKhau" />
			</div>
			<div style="clear: both;"></div>
			
			<div>
				<label for="vaiTro">Vai trò: </label>
				<input type="text" name="vaiTro" id="vaiTro"/>
			</div>
			<div style="clear: both;"></div>
			
			<div>
				<label for="ghiChu">Ghi chú: </label>
				<input type="text" name="ghiChu" id="ghiChu" value="<%
						if (model != null){
							out.println(model.getVaitro());
						}
					 %>				
				"/>
			</div>
			<div style="clear: both;"></div>
			
			<div align="center">
				<input type="submit" value="Thêm mới" name="submit" id="submit" class="submit" />
			</div>
			
			<input type="hidden" name="actionType" value="AddNew" />
			
		</form>
	</div> <!-- End #wrapp_form -->
</div> <!-- End #adduser -->
</body>
</html>